package main

import (
	"fmt"
	"sync/atomic"
)

func main() {
	var a uint32 = 3
	u := atomic.AddUint32(&a, ^uint32(0))
	fmt.Println(u)

	u = atomic.AddUint32(&a, ^uint32(1))
	fmt.Println(u)
}
